<!DOCTYPE html>
<html lang="ZH-cn">
<head>
    <meta charset="UTF-8">
    <title>审批流程设置</title>
    <style>
        body{width: 1200px;margin:0 auto;font-family: "Simsun",Tahoma,Arial,sans-serif;font-size: 14px;color:#000;}
        .mydetail{width: 1200px;padding-bottom:50px }
        table {background-color: transparent;border-collapse: collapse;border-spacing: 0;}
        .mydetail th, .mydetail td {border: 1px solid #e2e2e2;}
        .mydetail td,.mydetail th {text-align: center;padding: 10px 5px;}
        .tal{text-align: left;}
        .tac{text-align: center;}
        li{list-style: none}
        .search-con{height: 50px;line-height: 50px;background:#f3f3f3;padding: 5px 30px;margin-bottom: 10px}
        .search-con input{margin-right: 30px;}
        .search-con span{color: red;font-weight: bold;}
        .STYLE2 {font-size: medium}
        .ml10{margin-left: 50px;color:red;}
        .ml20{margin-left: 20px}
        .mt20{margin-top: 20px}
        .tit_01{color: #333;font-size: 16px;}
        .txt_01 li{line-height: 30px}
        .txt_01 a{color: #000}
        .txt_01 a:hover{color: #6f67dc}
        a:link {text-decoration: none;}
        a:visited {text-decoration: none;}
        a:hover {text-decoration: none;}
        a:active {text-decoration: none;}
        .aaa{display: inline-block;height: 40px;line-height: 40px;vertical-align: top;}
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="jquery-3.3.1.js"></script>
</head>
<body>
<!--头部设置-->
<table width="1200" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="100"><a href="http://www.ego-buy.com.cn/"><img src="image/bg11.jpg" alt="0" width="1200" height="76" border="0"></a></td>
    </tr>
    <tr>
        <td height="50"><img src="image/bg00.jpg" alt="0" width="1200" height="87"></td>
    </tr>
    <tr>
        <td height="50"><a href="index.php" class="STYLE2" style="margin-left:10px;">返回列表</a></td>
    </tr>
</table>

<form action="set_member.php" method="post">
<div style="border: 1px solid red;width: 100%;padding: 10px" id="member_list">
    <h4>设置审批人员</h4>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批一></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[0])? $data[0]:'' ?>">
        <datalist id="data"></datalist>
    </div>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批二></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[1])? $data[1]:'' ?>">
    </div>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批三></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[2])? $data[2]:'' ?>">
    </div>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批四></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[3])? $data[3]:'' ?>">
    </div>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批五></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[4])? $data[4]:'' ?>">
    </div>
    <div style="margin-left: 50px;margin-top: 10px" name="block">
        <span>审批六></span>
        <input list="data" type="text" name="member[]" style="width: 100px" onfocus="hint()" onkeyup="hint()" value="<?php echo isset($data[5])? '$data[5]':'' ?>">
    </div>
</div>
<div style="margin: 10px">
    <input type="submit" value="提交修改">
</div>
</form>
<script>
    //审批人输入框提示
    function hint() {
        $("#data").empty();
        var name = $("input[name='member[]']").val();
        $.ajax({
           url:"query.php",
           method:'post',
           data: {
               'control':'hint',
           },
            dataType:'json',
            success: function (res) {
               if (res.code == 200) {
                   $("#data").append(res.data);
               }
            }
        });
    };
</script>

<!--底部设置-->
<table width="1200" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="100" align="center" valign="bottom"><p><span class="STYLE8 STYLE3"><a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=112">集团简介 | </a><a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=143">广告服务</a> | <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=115">版权信息 |</a> <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=113">商家入驻 </a> | <a rel="nofollow" target="_blank" href="http://www.ego-buy.com.cn/faqListDetail.do?parent_id=108&id=114">新闻动态</a></span></p></td>
    </tr>
    <tr>
        <td height="30" align="center"><span class="STYLE3">Copyright © 2014-2015 ego-buy.com.cn All Rights Reserved 粤ICP备15026826号</span></td>
    </tr>
</table>
</body>
</html>